package com.peng.solutions.num001_099.num002;

import com.peng.datastructure.ListNode;

/**
 * @author jishushen
 * @version 1.0.0
 * @ClassName AddTwoNumbers.java
 * @Description TODO
 * @createTime 2021年11月16日 11:39:00
 */
public class AddTwoNumbersTest {

    /**
     * 两数相加
     * 输入：l1 = [2,4,3], l2 = [5,6,4]
     * 输出：[7,0,8]
     * 解释：342 + 465 = 807.
     */
    public static void main(String[] args) {
        ListNode l1_three = new ListNode(3);
        ListNode l1_two = new ListNode(4,l1_three);
        ListNode l1_one = new ListNode(2,l1_two);
        ListNode l2_three = new ListNode(4);
        ListNode l2_two = new ListNode(6,l2_three);
        ListNode l2_one = new ListNode(5,l2_two);
        com.peng.solutions.num001_099.num002.Solution solution = new com.peng.solutions.num001_099.num002.Solution();
        ListNode listNode = solution.addTwoNumbers(l1_one, l2_one);
        System.err.println(listNode);
    }
}
